package com.ruoyi.grape.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.grape.mapper.GrapeArgMapper;
import com.ruoyi.grape.domain.GrapeArg;
import com.ruoyi.grape.service.IGrapeArgService;

/**
 * 物候期农事提醒Service业务层处理
 * 
 * @author ld
 * @date 2023-11-18
 */
@Service
public class GrapeArgServiceImpl implements IGrapeArgService 
{
    @Autowired
    private GrapeArgMapper grapeArgMapper;

    /**
     * 查询物候期农事提醒
     * 
     * @param argId 物候期农事提醒主键
     * @return 物候期农事提醒
     */
    @Override
    public GrapeArg selectGrapeArgByArgId(Long argId)
    {
        return grapeArgMapper.selectGrapeArgByArgId(argId);
    }

    /**
     * 查询物候期农事提醒列表
     * 
     * @param grapeArg 物候期农事提醒
     * @return 物候期农事提醒
     */
    @Override
    public List<GrapeArg> selectGrapeArgList(GrapeArg grapeArg)
    {
        return grapeArgMapper.selectGrapeArgList(grapeArg);
    }

    /**
     * 新增物候期农事提醒
     * 
     * @param grapeArg 物候期农事提醒
     * @return 结果
     */
    @Override
    public int insertGrapeArg(GrapeArg grapeArg)
    {
        return grapeArgMapper.insertGrapeArg(grapeArg);
    }

    /**
     * 修改物候期农事提醒
     * 
     * @param grapeArg 物候期农事提醒
     * @return 结果
     */
    @Override
    public int updateGrapeArg(GrapeArg grapeArg)
    {
        return grapeArgMapper.updateGrapeArg(grapeArg);
    }

    /**
     * 批量删除物候期农事提醒
     * 
     * @param argIds 需要删除的物候期农事提醒主键
     * @return 结果
     */
    @Override
    public int deleteGrapeArgByArgIds(Long[] argIds)
    {
        return grapeArgMapper.deleteGrapeArgByArgIds(argIds);
    }

    /**
     * 删除物候期农事提醒信息
     * 
     * @param argId 物候期农事提醒主键
     * @return 结果
     */
    @Override
    public int deleteGrapeArgByArgId(Long argId)
    {
        return grapeArgMapper.deleteGrapeArgByArgId(argId);
    }
}
